package com.secondriver.url.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class LoginServlet extends HttpServlet {

	private static final String SUBJECT_ID_KEY = "subjectId";

	/**
	 * 
	 */
	private static final long serialVersionUID = 3080489925281896421L;

	@Override
	protected void service(HttpServletRequest request,
			HttpServletResponse reponse) throws ServletException, IOException {
		String subjectid = request.getParameter("subjectid");
		request.getSession().setAttribute(SUBJECT_ID_KEY, subjectid);
		request.getRequestDispatcher("/user.jsp").forward(request, reponse);
	}
}
